﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Library.DAO;
using Library.Entity;

namespace DesignLife
{
    public partial class Portfolio : System.Web.UI.Page
    {
        private Portpolios port;
        private PortpoliosDAO portdao;
        public Portfolio()
        {
            port = new Portpolios();
            portdao = new PortpoliosDAO();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                Loaddb();
            }

        }

        private void Loaddb()
        {
           PortpoliosDAO pordao= new PortpoliosDAO();
            IList<Portpolios> lst=pordao.GetAll();
            rptport.DataSource = lst;
            rptport.DataBind();

        }
    }
}